var redis = require("redis");

var client = null;

exports.connect = function(config){
    client = redis.createClient({
        host : config.host,
        port : config.port,
        db : config.db,
    });
    console.log("cityRedis is running");
    client.on("error",function(err){
        console.log(err);
    });
}
